home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QRZ! Ham Radio 8
/
QRZ Ham Radio Callsign Database - Volume 8.iso
/
pc
/
german
/
pkt
/
install.clx
< prev
next >
Wrap
Text File
|
1996-06-25
|
9KB
|
310 lines
How to install the clx software on your system
The installation of the clx software requires some
knowledge of Linux and Unix in general.
It is not an easy task.
Here's a checklist for you:
I know how to use an editor (vi/emacs/joe) [ ]
I know how to add new users [ ]
I know about tar, zcat and gzip [ ]
I know about TCP/IP, networking, ping [ ]
I know about Syslogd [ ]
I know how to make a new Kernel [ ]
I know about Lilo or other boot loaders [ ]
I know how to add commands to /etc/rc.* [ ]
I know about crontab entries [ ]
If you can say 'YES' to all of the above, you are
prepared to install clx. If not, you better get yourself
a book about Linux/Unix and play around with your system
to become familiar. This may take some time (weeks,
months).
1. Installing the package
Users in /etc/passwd
Clx needs two new users in your /etc/passwd.
These are:
User Group Home Directory
----------------------------------------------------
clx users /usr/local/clx
postgres users /usr/local/clx/postgres
----------------------------------------------------
It is a good idea to add them before you unpack the software.
So the files will have correct ownership and permissions.
The clx software comes in one huge .tgz file. This file should
be installed as follows:
# cd /
# zcat clx_15.tgz | tar xvf -
This will unpack the clx software in the directory /usr/local/clx.
You will need approximately 10 MB to install it.
You have now completed step one of the clx installation! Fine!
2. A new Kernel
You need a Linux kernel of version 1.1.73 or later with the following
drivers/components:
- System V IPC
- TCP/IP networking
- Amateur Radio AX.25 Level 2
- SLIP (serial line) support
Earlier or later kernel versions may or may not work. We are currently
using 1.1.73.
To patch the kernel, grab the file ax25k027.tgz from the ~/ax25 directory,
and apply it to your kernel sources:
# cd /
# zcat ~clx_us/ax25/ax25k027.tgz | tar xvf -
Go to the /usr/src/linux directory and edit the config.in file.
(with never kernel versions this file has wandered to the directory
/usr/src/linux/arch/i386/). Activate the line containing "Amateur Radio
AX.25 Level 2" by removing the leading '#'.
Now configure compile the new kernel with the following commands:
# cd /usr/src/linux
# make config
You must include the components stated above. Now go ahead and make
the new kernel.
# make depend
# make clean
# make
Configure your boot loader (e.g. lilo) to use the newly created
kernel.
Now boot the new kernel. Watch the boot messages. It should read
something like that:
...
Swansea University Computer Society NET3.016
GW4PTS AX.25 for Linux. Version 0.23 ALPHA for Linux NET3.016 (Linux 1.1.19)
Portions (c) Copyright 1984 University Of British Columbia
Portions (c) Copyright 1990 The Regents of the University Of California
NET3 TCP/IP protocols stack v016
IP Protocols: ICMP, UDP, TCP
SLIP: version 0.7.5-NET3.014-NEWTTY (4 channels)
CSLIP: code copyright 1989 Regents of the University of California
AX25: KISS encapsulation enabled
...
Congratulations! You have now finished the second step of the clx
installation procedure.
3. Testing the AX.25 driver
To check whether the newly created kernel driver is working
we will make some tests.
First go to the /dev directory and make a soft link from
the ttyS? where your TNC is connected to /dev/tnc:
# cd /dev
# ln -s ttyS0 tnc
Switch your TNC into KISS mode. With my TNC2 clone running
WA8DED firmware, I use the kisson shell script in ~clx_us/ax25 to
do that. The TNC should signal the transition to KISS mode by
flashing the CON and STA LEDs three times. After that you should
observe that the CON LED keeps flickering. This is a good sign!
Go to the ~clx/ax25 directory and start axattach manually.
# cd ~clx_us/ax25
# ./axattach -s 9600 /dev/tnc DL6RAI-1 &
If you get the message "TIOCSETD: Invalid argument", you forgot
to add the the SLIP driver to the kernel.
Now start listen and you should be able to monitor some traffic on
the channel:
# ./listen
Port sl0: AX25: DB0MWS->DD5FK-1 <RR C P R5>
Port sl0: AX25: DB0MWS->DD5FK-1 <RR C P R5>
Port sl0: AX25: DB0MWS-9->DG7DAH v DB0MWS* <UI C> pid=IP
IP: len 80 44.130.56.111->44.130.56.21 ihl 20 ttl 9 prot TCP
TCP: 3600->1031 Seq x76e68c04 Ack x8a24c23a ACK PSH Wnd 1024 Data 40
0000 /..USER dh1sbm dd2fx 795521971 -1 0 Uwe.
Port sl0: AX25: DG7DAH->DB0MWS-9 v DB0MWS <UI C> pid=IP
IP: len 40 44.130.56.21->44.130.56.111 ihl 20 ttl 9 prot TCP
TCP: 1031->3600 Seq x8a24c23a Ack x76e68c2c ACK Wnd 1024
Interrupt it with ctrl-C. We can now try make a connect.
This is dont with the call program. This program requires a
configuration file /usr/local/ax25/etc/ports, where you
have to spcify your callsign, speed, window size and frequency.
Mine looks as follows:
DL6RAI-1 1200 4 438.325
call will not start without one. After you have edited this
config file, you should be able to make a AX.25 connection:
# call db0mws
GW4PTS AX.25 Connect v1.08
Trying...
You should see your PTT LED go on and off and after a while
you shoud succeed to connect.
Congratulations! You have now mastered step three of the clx
installation!
4. Configuring TCP/IP
Clx needs TCP/IP to communicate. Theoretically, it would be possible to
have several modules of clx running on different machines as they are
all using the same mechanism.
All what it needed now is that you can reach yourself by TCP/IP. This
is probably working already. Try the following command:
# ping localhost
If you receive the following, everything is in order and you can
continue with the next step. Use ctrl-C to abort ping.
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=1 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=1 ms
^C
--- localhost ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 1/1/1 ms
However, if you get the following answer, something is not yet
set up correctly.
PING localhost (127.0.0.1): 56 data bytes
ping: sendto: Network is unreachable
ping: wrote localhost 64 chars, ret=-1
^C
In one of the rc files in /etc or /etc/rc.d (depends on your
Linux installation) you must activate networking with the following
commands:
ifconfig lo 127.0.0.1
route add localhost
See your Linux documentation for details.
You have now completed step four of the clx installation.
5. Checking your configuration
Login as clx_us and go to the postgres directory to start
postmaster.
$ cd postgres
$ ./.pstart
Now go to the tools directory. There is a Perl script called
check, which will check your installation. If the script
fails, it usually tells you why it fails and what to do.
$ cd
$ cd tools
$ ./check
If the script finishes with the message
Congratulations - clx should run on your system.
... you are ready to run clx on your system.
6. Starting clx for the first time
We are now ready to start clx for the first time. Kill the axattach
and postgres processes if they are still running and then login als
clx_us. You might have to edit the default config file in
~clx_us/config/clx_par. Leave the callsign string as it is.
You should check the tty and baud parameters.
Now start clx with the following command:
$ clx -u
You should now see clx coming up for the first time.
*** CLX System Parameters ***
callsign: xx0xx
database: clx_db
tty: /dev/tnc
baudrate: 9600
Checking directories and file permissions
Clearing shared memories.
Starting axattach.
Starting postmaster.
Clx coming up...
clx_ctl Shared Memory manager up
int_com Internal Communications Manager up
snd_ctl Transmit Spooler up
usr_ctl User Administration up
iu_com Inter-User communication up
icl_com Inter-Node communication up
usr_req User Database Interface up
mb_ctl Mailbox Controller up
usc_mng User Commands Manager up
rm_disp Received messages Dispatcher up
rcv_ctl Received messages Spooler up
con_ctl AX.25 interface up
Clx is up.
$
When clx is running, you will be returned to the $ prompt.
You can now log into clx with the loc_usr program. Clx
should greet you with a message and then display the
clx> prompt.
$ loc_usr
Hi om, here is "clx"! Experimental cluster-software on linux.
clx >
Now you can try a few commands, like
'sh/us', 'dx', 'sh/dx', 'set/name' etc.
Logout with 'bye'.
Shutdown clx with the following commmand:
$ clx -s
Congratulations! You have sucessfully installed clx on your computer.
If you are now willing to run CLX on the air, read on!
-----------------------------------------------------------------------------
[] Bernhard Buettner (Ben)
[] Mail: Am Brunnen 18, 85551 Kirchheim, Germany
[] Internet: root@dl6rai.muc.de
[] Packet: DL6RAI @ DB0AAB.#BAY.DEU.EU